//////////////////////////////////////////////////////
//  Duck.h	- DUCK CHARACTER						//
//  Created : nvchuong								//
///////////////////////////////////////////////////////
#ifndef __ADU_DUCK_H__
#define __ADU_DUCK_H__

#include "cocos2d.h"
#include "ADUConfig.h"
#include <Box2D/Box2D.h>

using namespace std;
class Duck : public cocos2d::Sprite
{
public:
	Duck();
	~Duck();

	static Duck* create(const float& x, const float& y,const string& file);

	// init data for game manager..
	void initialState();

	void setState(const int& _state);
	int getState() const;

	void createBody(float x, float y);
	void changeTextureByState(const int& _state);

	void setHealthStatus(const int& _healthValue);
	int getHealthStatus() const;
	void update(float dt);

	b2Body* GetBody(){
		return m_duckBody;
	}

private:
	int m_state;
	int m_health;
	b2Body* m_duckBody;
	b2Fixture* m_duckFixture;

};
#endif
#ifndef __ADU_DUCK_H__
#define __ADU_DUCK_H__
#endif

